www.gusucode.com > VC++ Office XP风格菜单-源码程序 > VC++ Office XP风格菜单-源码程序/code/OfficeXPMenu/OfficeXPMenuDoc.cpp

    //Download by http://www.NewXing.com
// OfficeXPMenuDoc.cpp : implementation of the COfficeXPMenuDoc class
//

#include "stdafx.h"
#include "OfficeXPMenu.h"

#include "OfficeXPMenuDoc.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// COfficeXPMenuDoc

IMPLEMENT_DYNCREATE(COfficeXPMenuDoc, CDocument)

BEGIN_MESSAGE_MAP(COfficeXPMenuDoc, CDocument)
	//{{AFX_MSG_MAP(COfficeXPMenuDoc)
		// NOTE - the ClassWizard will add and remove mapping macros here.
		//    DO NOT EDIT what you see in these blocks of generated code!
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// COfficeXPMenuDoc construction/destruction

COfficeXPMenuDoc::COfficeXPMenuDoc()
{
	// TODO: add one-time construction code here

}

COfficeXPMenuDoc::~COfficeXPMenuDoc()
{
}

BOOL COfficeXPMenuDoc::OnNewDocument()
{
	if (!CDocument::OnNewDocument())
		return FALSE;

	// TODO: add reinitialization code here
	// (SDI documents will reuse this document)
    /*	HDC hDC;
	CWnd * dlgwnd;	
	dlgwnd=GetDlgItem(IDD_OfficeXPMenu_FORM);
	hDC=::GetDC(dlgwnd->m_hWnd);
    SetBkColor(hDC,0x00FFFFFF);*/
	return TRUE;
}



/////////////////////////////////////////////////////////////////////////////
// COfficeXPMenuDoc serialization

void COfficeXPMenuDoc::Serialize(CArchive& ar)
{
	if (ar.IsStoring())
	{
		// TODO: add storing code here
	}
	else
	{
		// TODO: add loading code here
	}
}

/////////////////////////////////////////////////////////////////////////////
// COfficeXPMenuDoc diagnostics

#ifdef _DEBUG
void COfficeXPMenuDoc::AssertValid() const
{
	CDocument::AssertValid();
}

void COfficeXPMenuDoc::Dump(CDumpContext& dc) const
{
	CDocument::Dump(dc);
}
#endif //_DEBUG

/////////////////////////////////////////////////////////////////////////////
// COfficeXPMenuDoc commands